package iscript.uiFramework.components.menu 
{ 
	import flash.display.DisplayObjectContainer;
	import iscript.uiFramework.components.text.Label;
	public class ToolStripLabel extends ToolStripItem
	{
		
		private var _textLabel:Label;
		 
		public function ToolStripLabel() 
		{
			
		}
		
		
		override protected function initialize():void 
		{
			super.initialize ();			
			_textLabel = new Label();
			_textLabel.x = 30;			
		    _textLabel.render (this);
		} 
		
		
		override public function set disabled(value:Boolean):void 
		{
			_textLabel.disabled = value;
			super.disabled = value;
		}
		
		
		override public function render(container:DisplayObjectContainer = null):void 
		{
			_textLabel.y = (this.height - _textLabel.height) * .5;
			super.render(container);
		}
				
		
	    ///GET SET/////////////////////////////////////////////////
		public function get text():String 
		{
            return _textLabel.text
		}
		
		public function set text(value:String):void 
		{
			_textLabel.text = value;
		}
	}

}